<?php if($pageData): ?>

<div class="pager">
    <ul>
        <?php if($pageData['prev']['current']): ?>
        <li class="prev-page disable"><span>上一页</span></li>
        <?php else: ?>
        <li class="prev-page"><a href="{$pageData.prev.url']}">上一页</a></li>
        <?php endif; ?>

        <?php foreach($pageData['list'] as $pagenum=>$value): ?>
            <?php if($value['current']): ?>
            <li class="active"><span>{$pagenum}</span></li>
            <?php else: ?>
            <li><a href="{$value.url}">{$pagenum}</a></li>
            <?php endif; ?>
        <?php endforeach; ?>

        <?php if($pageData['next']['current']): ?>
        <li class="next-page disable"><span>下一页</span></li>
        <?php else: ?>
        <li class="next-page"><a href="{$pageData.next.url}">下一页</a></li>
        <?php endif; ?>
    </ul>
</div>

<?php endif; ?>
